home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / mpp.lha / mpp / src / MakefileM2C < prev    next >
Text File  |  1992-08-18  |  2KB  |  57 lines

  1.                 # Modula-2 library
  2. LIB    = ../../reuse/src
  3.  
  4.                 # options for modula compiler
  5. MFLAGS    = -nobounds -norange -M. -M$(LIB)
  6.  
  7.                 # option to name linked program
  8. OUT    = ; mv a.out
  9.  
  10. MD    = m2c $(MFLAGS)        # command to compile definition module
  11. MI    = m2c $(MFLAGS)        # command to compile implementation module
  12. MP    = m2c $(MFLAGS)        # command to compile program module
  13. ML    = m2c $(MFLAGS) -e    # command to link program
  14.  
  15. ED    = .def    # extension for definition module
  16. EI    = .mod    # extension for implementation module
  17. EP    = .mod    # extension for program module
  18. ES    = .sym    # extension for symbol file (compiled definition)
  19. EO    = .o    # extension for object file (compiled implementation)
  20.  
  21. SD    = .def    # compiler suffix for definition module
  22. SI    = .mod    # compiler suffix for implementation module
  23. SP    = .mod    # compiler suffix for program module
  24.  
  25. all    :
  26.  
  27. # HEAD
  28.  
  29. Parser$(ES)    : Parser$(ED)    ; $(MD) Parser$(SD)
  30.  
  31. Parser$(EO)    : Parser$(EI)    ; $(MI) Parser$(SI)
  32. Parser$(EO)    : Parser$(ES)
  33. Parser$(EO)    : Scanner$(ES)
  34. Parser$(EO)    : Scanner$(ES)
  35. Parser$(EO)    : Table$(ES)
  36.  
  37. Scanner$(ES)    : Scanner$(ED)    ; $(MD) Scanner$(SD)
  38.  
  39. Scanner$(EO)    : Scanner$(EI)    ; $(MI) Scanner$(SI)
  40. Scanner$(EO)    : Scanner$(ES)
  41.  
  42. Table$(ES)    : Table$(ED)    ; $(MD) Table$(SD)
  43.  
  44. Table$(EO)    : Table$(EI)    ; $(MI) Table$(SI)
  45. Table$(EO)    : Table$(ES)
  46.  
  47. all    : mpp
  48. mpp$(EO)    : mpp$(EP)    ; $(MP) mpp$(SP)
  49. mpp$(EO)    : Parser$(ES)
  50.  
  51. mpp    : mpp$(EO) Parser$(EO) Table$(EO) Scanner$(EO)    ; $(ML) mpp $(OUT) mpp
  52.  
  53. # TAIL
  54.  
  55. # CLEAN    :    ; rm -f core *.[dimor] ERRORS LISTING
  56. CLEAN    :    ; rm -f core *.sym *.o
  57.